﻿
<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"  CodeFile="NewRevenue.aspx.cs" Inherits="Admin_NewRevenue" Title="NewRevenue List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">New Revenue List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="NewRevenueDataSource"
				DataKeyNames="CmsCenter, InvNber, DateVisit"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_NewRevenue.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="CmsCenter" HeaderText="Cms Center" SortExpression="[CMS_Center]" ReadOnly="True" />
				<asp:BoundField DataField="InvNber" HeaderText="Inv Nber" SortExpression="[INV_NBER]" ReadOnly="True" />
				<asp:BoundField DataField="DateVisit" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Date Visit" SortExpression="[DATE_VISIT]" ReadOnly="True" />
				<asp:BoundField DataField="PatFilcod" HeaderText="Pat Filcod" SortExpression="[PAT_FILCOD]"  />
				<asp:BoundField DataField="PatName" HeaderText="Pat Name" SortExpression="[PAT_NAME]"  />
				<asp:BoundField DataField="PatFName" HeaderText="Pat F Name" SortExpression="[PAT_F_NAME]"  />
				<asp:BoundField DataField="PatNatio" HeaderText="Pat Natio" SortExpression="[PAT_NATIO]"  />
				<asp:BoundField DataField="PatCodcrp" HeaderText="Pat Codcrp" SortExpression="[PAT_CODCRP]"  />
				<asp:BoundField DataField="JobCorp" HeaderText="Job Corp" SortExpression="[JOB_CORP]"  />
				<asp:BoundField DataField="TotalProc" HeaderText="Total Proc" SortExpression="[TOTAL_PROC]"  />
				<asp:BoundField DataField="TotalPhar" HeaderText="Total Phar" SortExpression="[TOTAL_PHAR]"  />
				<asp:BoundField DataField="TotalPay" HeaderText="Total Pay" SortExpression="[TOTAL_PAY]"  />
				<data:BoundRadioButtonField DataField="FlagRev" HeaderText="Flag Rev" SortExpression="[FLAG_REV]"  />
				<asp:BoundField DataField="InvStat" HeaderText="Inv Stat" SortExpression="[INV_STAT]"  />
				<asp:BoundField DataField="RateCurr" HeaderText="Rate Curr" SortExpression="[RATE_CURR]"  />
				<asp:BoundField DataField="VatAmount" HeaderText="Vat Amount" SortExpression="[VAT_AMOUNT]"  />
				<asp:BoundField DataField="SrvAmount" HeaderText="Srv Amount" SortExpression="[SRV_AMOUNT]"  />
				<asp:BoundField DataField="UpdPayAcctcode" HeaderText="Upd Pay Acctcode" SortExpression="[UPD_PAY_ACCTCODE]"  />
				<asp:BoundField DataField="UpdInvMode" HeaderText="Upd Inv Mode" SortExpression="[UPD_INV_MODE]"  />
				<asp:BoundField DataField="UpdInvStat" HeaderText="Upd Inv Stat" SortExpression="[UPD_INV_STAT]"  />
				<asp:BoundField DataField="UpdVatNum" HeaderText="Upd Vat Num" SortExpression="[UPD_VAT_NUM]"  />
				<asp:BoundField DataField="UpdVatCenter" HeaderText="Upd Vat Center" SortExpression="[UPD_VAT_Center]"  />
				<asp:BoundField DataField="UpdPaymentDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Upd Payment Date" SortExpression="[UPD_PAYMENT_DATE]"  />
				<data:BoundRadioButtonField DataField="UpdSunImport" HeaderText="Upd Sun Import" SortExpression="[UPD_SUN_IMPORT]"  />
				<asp:BoundField DataField="UpdReason" HeaderText="Upd Reason" SortExpression="[UPD_REASON]"  />
				<asp:BoundField DataField="UpdReasonType" HeaderText="Upd Reason Type" SortExpression="[UPD_REASON_TYPE]"  />
				<asp:BoundField DataField="UpdRemark" HeaderText="Upd Remark" SortExpression="[UPD_REMARK]"  />
				<asp:BoundField DataField="UpdStatCat" HeaderText="Upd Stat Cat" SortExpression="[UPD_Stat_Cat]"  />
				<asp:BoundField DataField="UpdSunImportDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Upd Sun Import Date" SortExpression="[upd_SUN_IMport_date]"  />
				<asp:BoundField DataField="DiagCode" HeaderText="Diag Code" SortExpression="[DIAG_CODE]"  />
				<asp:BoundField DataField="AeaProgr" HeaderText="Aea Progr" SortExpression="[AEA_PROGR]"  />
				<asp:BoundField DataField="PatRefer" HeaderText="Pat Refer" SortExpression="[PAT_REFER]"  />
				<asp:BoundField DataField="UpdCaseFileNum" HeaderText="Upd Case File Num" SortExpression="[UPD_CaseFile_Num]"  />
				<asp:BoundField DataField="PatSex" HeaderText="Pat Sex" SortExpression="[PAT_SEX]"  />
				<asp:BoundField DataField="PatDob" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Pat Dob" SortExpression="[PAT_DOB]"  />
				<asp:BoundField DataField="WinisNo" HeaderText="Winis No" SortExpression="[WINIS_NO]"  />
				<asp:BoundField DataField="WinisPrgr" HeaderText="Winis Prgr" SortExpression="[WINIS_PRGR]"  />
				<asp:BoundField DataField="CompTel2" HeaderText="Comp Tel2" SortExpression="[COMP_TEL2]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No NewRevenue Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnNewRevenue" OnClientClick="javascript:location.href='NewRevenueEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:NewRevenueDataSource ID="NewRevenueDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:NewRevenueDataSource>
	    		
</asp:Content>



